use serde_json::{self, Value};
use std::fs::File;
use std::io::BufReader;
use std::path::Path;

pub fn read_general_json(file_path: &Path) -> Result<Value, Box<dyn std::error::Error>> {
    // 打开文件
    let file = File::open(file_path)?;
    let reader = BufReader::new(file);

    let json_value: Value = serde_json::from_reader(reader)?;

    Ok(json_value)
}
